﻿@model IEnumerable<SD.EF.FilmEntity>

@{
    ViewBag.Title = "Index2";
}

<h2>Index2</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.KeyName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.BigImg)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SmallImg)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.EnName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DeName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Regisseur)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Darsteller)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Laufzeit)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Altersfreigabe)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Verleihrechte)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Inhalt)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Recommended)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.New)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.MostViewed)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Specials)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.KeyName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.BigImg)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SmallImg)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EnName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DeName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Regisseur)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Darsteller)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Laufzeit)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Altersfreigabe)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Verleihrechte)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Inhalt)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Recommended)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.New)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MostViewed)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Specials)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })
        </td>
    </tr>
}

</table>
